<!DOCTYPE html>
<html lang="de">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
	<!-- Icon -->
    <!-- <link rel="shortcut icon" href="../../docs-assets/ico/favicon.png"> -->

    <title><?= $this->Title; ?></title>

    <?= $this->RenderStyleSection(); ?>

    <!-- Just for debugging purposes. Don't actually copy this line! -->
    <!--[if lt IE 9]><script src="../../docs-assets/js/ie8-responsive-file-warning.js"></script><![endif]-->

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->
	<!-- Bootstrap core JavaScript
    ================================================== -->
	<?= $this->RenderScriptSection(); ?>
  </head>

  <body>

    <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="?">al Dente</a>
        </div>
        <div class="navbar-collapse collapse">
		  <!-- Navigation -->
		  <ul class="nav navbar-nav">
            <?= HTML::NavLink("Product", "Produkte"); ?>
			<?= HTML::NavLink("Category", "Kategorien"); ?>
			<?= HTML::NavLink("Angebot", "Angebote"); ?>
		  </ul>
		  <ul class="nav navbar-nav navbar-right">
			<?php
				if ($this->isLogedIn)
				{
?>
					<li class="dropdown">
						<a class="dropdown-toggle" data-toggle="dropdown" href="#">
							<?= HTML::Write($this->UserName); ?> <span class="caret"></span>
						</a>
						<ul class="dropdown-menu">
							<?= HTML::NavLink("Account", "Abmelden", "Logout"); ?>
						</ul>
					</li>				
<?php
				}
				else
				{
					echo HTML::NavLink("Account", "Anmelden", "ShowLogin");
				}
			?>
          </ul>
		  
        </div><!--/.navbar-collapse -->
      </div>
    </div>

    <!-- Main jumbotron for a primary marketing message or call to action -->
    <div class="jumbotron">
		<div id="data-error" class="container">
			<div id="error-message"><?= $this->ValidationErrors(); ?></div>
		</div>
	</div>
	<div class="container">
	  <?= $this->RenderBody(); ?>

      <hr>

      <footer>
        <p>&copy; 2013 E.T. Software</p>
      </footer>
    </div> <!-- /container -->
  </body>
</html>